linux.git
14 months agoandroid: Enable building ashmem and binder as modules
Ben Hutchings [Fri, 22 Jun 2018 16:27:00 +0000 (17:27 +0100)]
android: Enable building ashmem and binder as modules

Bug-Debian: https://bugs.debian.org/901492

We want to enable use of the Android ashmem and binder drivers to
support Anbox, but they should not be built-in as that would waste
resources and increase security attack surface on systems that don't
need them.

- Add a MODULE_LICENSE declaration to ashmem
- Change the Makefiles to build each driver as an object with the
  "_linux" suffix (which is what Anbox expects)
- Change config symbol types to tristate

Update:
In upstream commit 721412ed3d titled "staging: remove ashmem" the ashmem
driver was removed entirely. Secondary commit message:
"The mainline replacement for ashmem is memfd, so remove the legacy
code from drivers/staging/"
Consequently, the ashmem part of this patch has been removed.

Gbp-Pq: Topic debian
Gbp-Pq: Name android-enable-building-ashmem-and-binder-as-modules.patch

14 months agoExport symbols needed by binder
Ben Hutchings [Mon, 5 Aug 2024 01:26:48 +0000 (03:26 +0200)]
Export symbols needed by binder

Bug-Debian: https://bugs.debian.org/901492

We want to enable use of the Android binder driver to support
Waydroid, but it should not be built-in as that would waste resources
and increase security attack surface on systems that don't need it.

Export the currently un-exported symbols it depends on.

Gbp-Pq: Topic debian
Gbp-Pq: Name export-symbols-needed-by-android-drivers.patch

14 months agowireless: Add Debian wireless-regdb certificates
Ben Hutchings [Fri, 13 Apr 2018 19:10:28 +0000 (20:10 +0100)]
wireless: Add Debian wireless-regdb certificates

Forwarded: not-needed

This hex dump is generated using:

{
    for cert in debian/certs/wireless-regdb-*.pem; do
        openssl x509 -in $cert -outform der;
    done
} | hexdump -v -e '1/1 "0x%.2x," "\n"' > net/wireless/certs/debian.hex

Gbp-Pq: Topic debian
Gbp-Pq: Name wireless-add-debian-wireless-regdb-certificates.patch

14 months agotools: install perf python bindings
Adriaan Schmidt [Mon, 4 Apr 2022 11:38:33 +0000 (13:38 +0200)]
tools: install perf python bindings

Bug-Debian: http://bugs.debian.org/860957
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name tools-perf-install-python-bindings.patch

14 months agolinux-tools: Install perf-read-vdso{,x}32 in directory under /usr/lib
Ben Hutchings [Mon, 11 May 2015 02:51:07 +0000 (02:51 +0000)]
linux-tools: Install perf-read-vdso{,x}32 in directory under /usr/lib

Gbp-Pq: Topic debian
Gbp-Pq: Name tools-perf-perf-read-vdso-in-libexec.patch

14 months ago[sh4] Fix uImage build
Nobuhiro Iwamatsu [Sat, 21 Dec 2024 08:13:54 +0000 (09:13 +0100)]
[sh4] Fix uImage build

Bug-Debian: https://bugs.debian.org/569034
Forwarded: not-needed

[bwh: This was added without a description, but I think it is done
 only to avoid a build-dependency on u-boot-tools.]

Gbp-Pq: Topic debian
Gbp-Pq: Name arch-sh4-fix-uimage-build.patch

14 months agoEnable R2 to R6 emulator by default
YunQiang Su [Mon, 14 May 2018 08:16:18 +0000 (16:16 +0800)]
Enable R2 to R6 emulator by default

Forwarded: not-needed

In upstream code, 'mipsr2emu' kernel option is needed
to enable R2 to R6 emulator.  Since we need r6 kernel
for our r2 port, let's always enable it.

Gbp-Pq: Topic debian
Gbp-Pq: Name mips-enable-r2-to-r6-emu-by-default.patch

14 months agoUse RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only
YunQiang Su [Mon, 16 Nov 2020 01:11:00 +0000 (09:11 +0800)]
Use RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only

Forwarded: not-needed

There are 2 mode of value of IEEE NaN hardcoded by CPU.
Currently, our mipsel/mips64el port is in so-called lagacy mode.
Loongson 3A 4000 is set as the so-called 2008 mode.

To make Debian workable on Loongson 3A 4000, we need set the kerenl in
RELAXED mode.

https://web.archive.org/web/20180830093617/https://dmz-portal.mips.com/wiki/MIPS_ABI_-_NaN_Interlinking

[bwh: Update for addition of EMULATED mode in 6.11]

Gbp-Pq: Topic debian
Gbp-Pq: Name mips-ieee754-relaxed.patch

14 months agoDisable uImage generation for mips generic
YunQiang Su [Mon, 14 May 2018 08:16:18 +0000 (16:16 +0800)]
Disable uImage generation for mips generic

Forwarded: not-needed

MIPS generic trys to generate uImage when build, which then ask for
u-boot-tools.

[bwh: Updated for 5.17:
 - zload-y is no longer assigned here and appears to default to empty
 - Adjust context]

Gbp-Pq: Topic debian
Gbp-Pq: Name mips-boston-disable-its.patch

14 months agokbuild: Make the toolchain variables easily overwritable
Bastian Blank [Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)]
kbuild: Make the toolchain variables easily overwritable

Forwarded: not-needed

Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.

We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.

This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.

[bwh: Updated for 5.3: include .kernelvariables from current directory
 rather than using undefined $(obj).]

Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch

14 months agoMake mkcompile_h accept an alternate timestamp string
Ben Hutchings [Tue, 12 May 2015 18:29:22 +0000 (19:29 +0100)]
Make mkcompile_h accept an alternate timestamp string

Forwarded: not-needed

We want to include the Debian version in the utsname::version string
instead of a full timestamp string.  However, we still need to provide
a standard timestamp string for gen_initramfs_list.sh to make the
kernel image reproducible.

Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
$KBUILD_BUILD_TIMESTAMP.

Gbp-Pq: Topic debian
Gbp-Pq: Name uname-version-timestamp.patch

14 months agoInclude package version along with kernel release in stack traces
Ben Hutchings [Tue, 24 Jul 2012 02:13:10 +0000 (03:13 +0100)]
Include package version along with kernel release in stack traces

Forwarded: not-needed

For distribution binary packages we assume
$DISTRIBUTION_OFFICIAL_BUILD, $DISTRIBUTOR and $DISTRIBUTION_VERSION
are set.

Gbp-Pq: Topic debian
Gbp-Pq: Name version.patch

14 months agoDocumentation: Fix broken link to CIPSO draft
Ben Hutchings [Sat, 24 Aug 2019 18:00:41 +0000 (19:00 +0100)]
Documentation: Fix broken link to CIPSO draft

Forwarded: not-needed

We exclude the CIPSO draft text as its licence is not DFSG compliant.
Link to the IETF's online version instead.

Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name documentation-fix-broken-link-to-cipso-draft.patch

14 months agovideo: Remove nvidiafb and rivafb
Ben Hutchings [Sat, 2 Jun 2012 18:53:38 +0000 (19:53 +0100)]
video: Remove nvidiafb and rivafb

Bug-Debian: https://bugs.debian.org/383481
Forwarded: no

These drivers contain register programming code provided by the
hardware vendor that appears to have been deliberately obfuscated.
This is arguably not the preferred form for modification.

These drivers are also largely redundant with nouveau.  The RIVA 128
(NV3) is not supported by nouveau but is about 15 years old and
probably discontinued 10 years ago.

Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name video-remove-nvidiafb-and-rivafb.patch

14 months agodvb-usb-af9005: mark as broken
Ben Hutchings [Mon, 17 Aug 2009 01:45:41 +0000 (02:45 +0100)]
dvb-usb-af9005: mark as broken

Forwarded: not-needed

Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name drivers-media-dvb-dvb-usb-af9005-disable.patch

14 months agoRemove microcode patches for mgsuvd (not enabled in Debian configs)
Ben Hutchings [Mon, 13 Apr 2009 16:34:00 +0000 (17:34 +0100)]
Remove microcode patches for mgsuvd (not enabled in Debian configs)

Forwarded: not-needed

Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name arch-powerpc-platforms-8xx-ucode-disable.patch

14 months agoTweak gitignore for Debian pkg-kernel using git
Ian Campbell [Thu, 17 Jan 2013 08:55:21 +0000 (08:55 +0000)]
Tweak gitignore for Debian pkg-kernel using git

Forwarded: not-needed

[bwh: Tweak further for pure git]

Gbp-Pq: Topic debian
Gbp-Pq: Name gitignore.patch

14 months agolinux (6.12.6-1) unstable; urgency=medium
Salvatore Bonaccorso [Sat, 21 Dec 2024 08:13:54 +0000 (09:13 +0100)]
linux (6.12.6-1) unstable; urgency=medium

  * New upstream stable update:
    https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.6
    - [arm64] usb: misc: onboard_usb_dev: skip suspend/resume sequence for
      USB5744 SMBus support
    - serial: sh-sci: Check if TX data was written to device in .tx_empty()
    - bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors
    - sched/deadline: Fix replenish_dl_new_period dl_server condition
    - [x86] perf/x86/intel/ds: Unconditionally drain PEBS DS when changing
      PEBS_DATA_CFG
    - ksmbd: fix racy issue from session lookup and expire
    - splice: do not checksum AF_UNIX sockets
    - tcp: check space before adding MPTCP SYN options
    - perf ftrace: Fix undefined behavior in cmp_profile_data()
    - virtio_net: correct netdev_tx_reset_queue() invocation point
    - virtio_ring: add a func argument 'recycle_done' to virtqueue_resize()
    - virtio_net: ensure netdev_tx_reset_queue is called on tx ring resize
    - [riscv64] mm: Do not call pmd dtor on vmemmap page table teardown
    - [riscv64] Fix wrong usage of __pa() on a fixmap address
    - blk-cgroup: Fix UAF in blkcg_unpin_online()
    - block: Switch to using refcount_t for zone write plugs
    - block: Use a zone write plug BIO work for REQ_NOWAIT BIOs
    - dm: Fix dm-zoned-reclaim zone write pointer alignment
    - block: Prevent potential deadlocks in zone write plug error recovery
    - gpio: graniterapids: Fix GPIO Ack functionality
    - memcg: slub: fix SUnreclaim for post charged objects
    - spi: rockchip: Fix PM runtime count on no-op cs
    - gpio: ljca: Initialize num before accessing item in ljca_gpio_config
    - ALSA: usb-audio: Add implicit feedback quirk for Yamaha THR5
    - ALSA: hda/realtek: Fix headset mic on Acer Nitro 5
    - [riscv64] Fix IPIs usage in kfence_protect_page()
    - drm/panic: remove spurious empty line to clean warning
    - usb: host: max3421-hcd: Correctly abort a USB request.
    - block: Ignore REQ_NOWAIT for zone reset and zone finish operations
    - gpio: graniterapids: Fix vGPIO driver crash
    - gpio: graniterapids: Fix incorrect BAR assignment
    - gpio: graniterapids: Fix invalid GPI_IS register offset
    - gpio: graniterapids: Fix invalid RXEVCFG register bitmask
    - gpio: graniterapids: Determine if GPIO pad can be used by driver
    - gpio: graniterapids: Check if GPIO line can be used for IRQs
    - usb: core: hcd: only check primary hcd skip_phy_initialization
    - bpf: Revert "bpf: Mark raw_tp arguments with PTR_MAYBE_NULL"
    - ata: sata_highbank: fix OF node reference leak in
      highbank_initialize_phys()
    - usb: dwc2: Fix HCD resume
    - usb: dwc2: hcd: Fix GetPortStatus & SetPortFeature
    - usb: dwc2: Fix HCD port connection race
    - scsi: ufs: core: Update compl_time_stamp_local_clock after completing a
      cqe
    - usb: gadget: midi2: Fix interpretation of is_midi1 bits
    - usb: ehci-hcd: fix call balance of clocks handling routines
    - usb: typec: anx7411: fix fwnode_handle reference leak
    - usb: dwc3: imx8mp: fix software node kernel dump
    - usb: typec: anx7411: fix OF node reference leaks in
      anx7411_typec_switch_probe()
    - usb: gadget: u_serial: Fix the issue that gs_start_io crashed due to
      accessing null pointer
    - usb: typec: ucsi: Fix completion notifications
    - usb: dwc3: xilinx: make sure pipe clock is deselected in usb2 only mode
    - [amd64] iommu/vt-d: Remove cache tags before disabling ATS
    - [amd64] iommu/vt-d: Fix qi_batch NULL pointer with nested parent domain
    - drm/xe: Call invalidation_fence_fini for PT inval fences in error state
    - [amd64] drm/i915: Fix memory leak by correcting cache object name in error
      handler
    - [amd64] drm/i915/color: Stop using non-posted DSB writes for legacy LUT
    - [amd64] drm/i915: Fix NULL pointer dereference in capture_engine
    - drm/amdgpu: fix UVD contiguous CS mapping problem
    - drm/amd/pm: Set SMU v13.0.7 default workload type
    - drm/amdgpu: fix when the cleaner shader is emitted
    - drm/amdkfd: Dereference null return value
    - drm/amdkfd: hard-code cacheline size for gfx11
    - drm/amdkfd: hard-code MALL cacheline size for gfx11, gfx12
    - xfs: set XFS_SICK_INO_SYMLINK_ZAPPED explicitly when zapping a symlink
    - xfs: update btree keys correctly when _insrec splits an inode root block
    - xfs: don't drop errno values when we fail to ficlone the entire range
    - xfs: return a 64-bit block count from xfs_btree_count_blocks
    - xfs: fix null bno_hint handling in xfs_rtallocate_rtg
    - xfs: return from xfs_symlink_verify early on V4 filesystems
    - xfs: fix scrub tracepoints when inode-rooted btrees are involved
    - xfs: only run precommits once per transaction object
    - xfs: unlock inodes when erroring out of xfs_trans_alloc_dir
    - bpf: Check size for BTF-based ctx access of pointer members
    - bpf: Fix theoretical prog_array UAF in __uprobe_perf_func()
    - bpf,perf: Fix invalid prog_array access in perf_event_detach_bpf_prog
    - bpf, sockmap: Fix race between element replace and close()
    - bpf, sockmap: Fix update element with same
    - bpf: Augment raw_tp arguments with PTR_MAYBE_NULL
    - perf tools: Fix build-id event recording
    - wifi: nl80211: fix NL80211_ATTR_MLO_LINK_ID off-by-one
    - wifi: mac80211: init cnt before accessing elem in
      ieee80211_copy_mbssid_beacon
    - wifi: mac80211: fix a queue stall in certain cases of CSA
    - wifi: mac80211: fix station NSS capability initialization order
    - perf machine: Initialize machine->env to address a segfault
    - acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl
    - amdgpu/uvd: get ring reference from rq scheduler
    - batman-adv: Do not send uninitialized TT changes
    - batman-adv: Remove uninitialized data in full table TT response
    - batman-adv: Do not let TT changes list grows indefinitely
    - tipc: fix NULL deref in cleanup_bearer()
    - net/mlx5: DR, prevent potential error pointer dereference
    - wifi: cfg80211: sme: init n_channels before channels[] access
    - ptp: kvm: x86: Return EOPNOTSUPP instead of ENODEV from
      kvm_arch_ptp_init()
    - bnxt_en: Fix GSO type for HW GRO packets on 5750X chips
    - net: lapb: increase LAPB_HEADER_LEN
    - net: defer final 'struct net' free in netns dismantle
    - [arm64] net: mscc: ocelot: fix memory leak on
      ocelot_port_add_txtstamp_skb()
    - [arm64] net: mscc: ocelot: improve handling of TX timestamp for unknown
      skb
    - [arm64] net: mscc: ocelot: ocelot->ts_id_lock and
      ocelot_port->tx_skbs.lock are IRQ-safe
    - [arm64] net: mscc: ocelot: be resilient to loss of PTP packets during
      transmission
    - [arm64] net: mscc: ocelot: perform error cleanup in ocelot_hwstamp_set()
    - regulator: axp20x: AXP717: set ramp_delay
    - spi: aspeed: Fix an error handling path in aspeed_spi_[read|write]_user()
    - net: sparx5: fix FDMA performance issue
    - net: sparx5: fix the maximum frame length register
    - ACPI: resource: Fix memory resource type union access
    - cxgb4: use port number to set mac addr
    - qca_spi: Fix clock speed for multiple QCA7000
    - qca_spi: Make driver probing reliable
    - ALSA: control: Avoid WARN() for symlink errors
    - [amd64] ASoC: amd: yc: Fix the wrong return value
    - Documentation: PM: Clarify pm_runtime_resume_and_get() return value
    - block: get wp_offset by bdev_offset_from_zone_start
    - bnxt_en: Fix aggregation ID mask to prevent oops on 5760X chips
    - Documentation: networking: Add a caveat to nexthop_compat_mode sysctl
    - cifs: Fix rmdir failure due to ongoing I/O on deleted file
    - ASoC: tas2781: Fix calibration issue in stress test
    - Bluetooth: Improve setsockopt() handling of malformed user input
    - libperf: evlist: Fix --cpu argument on hybrid platform
    - ASoC: fsl_xcvr: change IFACE_PCM to IFACE_MIXER
    - ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER
    - netfilter: IDLETIMER: Fix for possible ABBA deadlock
    - netfilter: nf_tables: do not defer rule destruction via call_rcu
    - net: mana: Fix memory leak in mana_gd_setup_irqs
    - net: mana: Fix irq_contexts memory leak in mana_gd_setup_irqs
    - net: dsa: felix: fix stuck CPU-injected packets with short taprio windows
    - net/sched: netem: account for backlog updates from child qdisc
    - net, team, bonding: Add netdev_base_features helper
    - bonding: Fix initial {vlan,mpls}_feature set in bond_compute_features
    - bonding: Fix feature propagation of NETIF_F_GSO_ENCAP_ALL
    - team: Fix initial vlan_feature set in __team_compute_features
    - team: Fix feature propagation of NETIF_F_GSO_ENCAP_ALL
    - [x86] ASoC: Intel: sof_sdw: Add space for a terminator into DAIs array
    - ACPICA: events/evxfregn: don't release the ContextMutex that was never
      acquired
    - Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating
    - Bluetooth: iso: Always release hdev at the end of iso_listen_bis
    - Bluetooth: iso: Fix recursive locking warning
    - Bluetooth: SCO: Add support for 16 bits transparent voice setting
    - Bluetooth: iso: Fix circular lock in iso_listen_bis
    - Bluetooth: iso: Fix circular lock in iso_conn_big_sync
    - Bluetooth: btmtk: avoid UAF in btmtk_process_coredump
    - net: dsa: microchip: KSZ9896 register regmap alignment to 32 bit
      boundaries
    - net: dsa: tag_ocelot_8021q: fix broken reception
    - drm/xe: fix the ERR_PTR() returned on failure to allocate tiny pt
    - drm/xe/reg_sr: Remove register pool
    - blk-iocost: Avoid using clamp() on inuse in __propagate_weights()
    - blk-mq: move cpuhp callback registering out of q->sysfs_lock
    - block: Fix potential deadlock while freezing queue and acquiring
      sysfs_lock
    - [arm64] KVM: arm64: Disable MPAM visibility by default and ignore VMM
      writes
    - xen/netfront: fix crash when removing device (CVE-2024-53240)
    - [x86] make get_cpu_vendor() accessible from Xen code (CVE-2024-53241)
    - [x86] objtool/x86: allow syscall instruction ((CVE-2024-53241)
    - [x86] static-call: provide a way to do very early static-call updates
      (CVE-2024-53241)
    - [x86] xen: don't do PV iret hypercall through hypercall page
      (CVE-2024-53241)
    - [x86] xen: add central hypercall functions (CVE-2024-53241)
    - [x86] xen: use new hypercall functions instead of hypercall page
      (CVE-2024-53241)
    - [x86] xen: remove hypercall page (CVE-2024-53241)
    - [x86] static-call: fix 32-bit build

  [ Uwe Kleine-König ]
  * [arm64] Enable rx8025 driver as module.

  [ Salvatore Bonaccorso ]
  * drivers/block/zram: Enable lz4, lz4hc and zstd compression support
    - Enable ZRAM_BACKEND_LZ4, ZRAM_BACKEND_LZ4HC and ZRAM_BACKEND_ZSTD
    (Closes: #1086172)
  * drivers/block/zram: Enable ZRAM_BACKEND_DEFLATE
  * drivers/hwmon: Enable SENSORS_SPD5118 as module (Closes: #1090071)

[dgit import unpatched linux 6.12.6-1]

14 months agoImport linux_6.12.6.orig.tar.xz
Salvatore Bonaccorso [Sat, 21 Dec 2024 08:13:54 +0000 (09:13 +0100)]
Import linux_6.12.6.orig.tar.xz

[dgit import orig linux_6.12.6.orig.tar.xz]

14 months agoImport linux_6.12.6-1.debian.tar.xz
Salvatore Bonaccorso [Sat, 21 Dec 2024 08:13:54 +0000 (09:13 +0100)]
Import linux_6.12.6-1.debian.tar.xz

[dgit import tarball linux 6.12.6-1 linux_6.12.6-1.debian.tar.xz]